home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 147
/
(Vol 147) Jan 21 2012.iso
/
Interface
/
mod.000
/
scripts
/
__Packages
/
mx
/
skins
/
ColoredSkinElement.as
< prev
next >
Wrap
Text File
|
2012-01-21
|
893b
|
36 lines
class mx.skins.ColoredSkinElement
{
static var mixins = new mx.skins.ColoredSkinElement();
function ColoredSkinElement()
{
}
function setColor(c)
{
if(c != undefined)
{
var _loc2_ = new Color(this);
_loc2_.setRGB(c);
}
}
function draw(Void)
{
this.setColor(this.getStyle(this._color));
this.onEnterFrame = undefined;
}
function invalidateStyle(Void)
{
this.onEnterFrame = this.draw;
}
static function setColorStyle(p, colorStyle)
{
if(p._color == undefined)
{
p._color = colorStyle;
}
p.setColor = mx.skins.ColoredSkinElement.mixins.setColor;
p.invalidateStyle = mx.skins.ColoredSkinElement.mixins.invalidateStyle;
p.draw = mx.skins.ColoredSkinElement.mixins.draw;
p.setColor(p.getStyle(colorStyle));
}
}